<div style="float:" class="col-md-7 clearfix">
	<div class="btn-toolbar">
		<?if(!empty($_SESSION['account']['allow_add'])) { ?>
			<a href="javascript:void(0)" onClick="openEditDialog('<?=$add?>')">
		    	<button class="btn btn-primary">New</button>
		    </a>
		<? } else {?>
			<button class="btn disabled">New</button>
		<? } ?>

		<? if($_GET['mod'] == "patient") {?>
			<?if(!empty($_SESSION['account']['allow_edit'])) { ?>
				<a href="javascript:void(0)" onClick="navigationLink('edit')">
			    	<button class="btn btn-primary">Add</button>
			    </a>
			<? } else {?>
				<button class="btn disabled">Add</button>
			<? } ?>
		<? } ?>

		<?if(!empty($_SESSION['account']['allow_edit'])) { ?>
		    <a href="javascript:void(0)" onClick="navigationLink('edit')">
		   		<button class="btn btn-primary">Edit</button>
		   	</a>
		<? } else {?>
			<button class="btn disabled">Edit</button>
		<? } ?>

		<?if(!empty($_SESSION['account']['allow_delete'])) { ?>
		   	<a href="javascript:void(0)" onClick="navigationLink('delete')">
		   		<button class="btn btn-primary">Delete</button>
		   	</a>
		<? } else {?>
			<button class="btn disabled">Delete</button>
		<? } ?>

		<? if($_GET['mod'] == "patient") {?>
		   	<button class="btn disabled">Jump</button>
		   	<a href="javascript:void(0)" onClick="openSearchDialog('<?=$search?>')">
		   		<button class="btn btn-primary">Search</button>
			</a>
		<? } ?>
		
	    <a href="<?=APP_ROOT?>">
	    	<button class="btn btn-primary">Close</button>
	    </a>
	    <p>&nbsp;</p>
	</div>
</div>